/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/',
    name: 'TodoList',
    redirect: { name: 'TodoListIndex' },
    children: [
      {
        path: '/todo',
        name: 'TodoListIndex',
        component: () => import('@/views/TodoList/Index.vue')
      },
      {
        path: '/settings',
        name: 'Settings',
        component: () => import('@/views/Settings.vue')
      },
      {
        path: '/statistics',
        name: 'Statistics',
        component: () => import('@/views/Statistics.vue')
      },
      {
        path: '/whitenoise',
        name: 'WhiteNoise',
        component: () => import('@/views/WhiteNoise.vue')
      }
    ]
  },
]

export default constantRouterMap